<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>

        <?php
        if ($_REQUEST['action'] == "print") {
            $array = $_REQUEST["whatever"];
            for ($i = 0; $i < sizeof($array); $i++)
                echo $array[$i] . "<br />";
        }
        else
        {
        ?>
        <form method="post" action="test.php?action=print">
            <p><input type="text" name="whatever[]" /></p>
            <p><input type="text" name="whatever[]" /></p>
            <p><input type="text" name="whatever[]" /></p>
            <p><input type="text" name="whatever[]" /></p>
            <p><input type="submit" name="Submit" />
        </form>
<?php
        }
        ?>

    </body>
</html>
